<template>
  <div class="common-category-subMenu">
    <div class="common-category-subMenu__outer">
      <div class="common-category-subMenu__inner">
        <div class="common-category-subMenu__wrapped">
          <div
            v-for="index in 30"
            :key="index"
            class="common-category-subMenu__item"
          >
            初始糖尿病
          </div>
        </div>
        <div class="common-category-subMenu__line"></div>
      </div>
      <!-- <div class="common-category-subMenu__outer-after"></div> -->
    </div>
    <div class="common-category-subMenu__operate">
      <div class="collapse-btn">
        全部
        <image
          src="@/assets/icon/collapse-close.png"
          class="collapse-btn__icon"
        />
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
defineOptions({
  name: "common-category-subMenu",
});
</script>

<style lang="less">
.common-category-subMenu {
  box-sizing: border-box;
  padding: 20px 30px;
  display: flex;
  align-items: flex-start;
  &__outer {
    position: relative;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    &::-webkit-scrollbar {
      display: none;
    }

    &-after {
      position: absolute;
      top: 0;
      right: 0;
      width: 100px;
      height: 100%;
      // background: linear-gradient(to right, transparent 0%, #fff 80%);
      background: red;
      z-index: 1;
    }
  }
  &__inner {
  }
  &__wrapped {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  &__item {
    font-weight: 400;
    font-size: 24px;
    color: #000000;
    line-height: 34px;
    white-space: nowrap;
  }
  &__operate {
    // padding-left: 12px;
    box-shadow: 20px 30px 1 3px red;
    .collapse-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 400;
      font-size: 24px;
      color: #8b8b8b;
      line-height: 34px;
      &__icon {
        width: 22px;
        height: 22px;
      }
    }
  }
}
</style>
